﻿using System;
using System.Collections.Generic;
using System.Text;

///<summary>
///SoldierIdleState 站立状态类
///</summary>
class SoldierIdleState:ISoldierState
{
    public SoldierIdleState(SoldierFSMSystem fsm, ICharacter c) : base(fsm, c)
    {
        mStateID = SoldierStateID.Idle;
    }
    public override void Reason(List<ICharacter> targets)
    {
        //判断有敌人就切换状态
        if (targets!=null && targets.Count>0)
        {
            mFsm.PerformTransition(SoldierTransition.SeeEnemy);
        }
    }

    public override void Act(List<ICharacter> targets)
    {
        //播放idle stand动画
        mCharacter.PlayAnim("stand");

    }

    
}

